package com.dyh.quickdemozwei;

import com.google.common.collect.Lists;
import org.junit.jupiter.api.Test;

import java.util.Comparator;
import java.util.List;
import java.util.NavigableMap;
import java.util.TreeMap;

public class TestDiff {


    @Test public void test1(){
        String str = "http://ctf-pim.oss-cn-hongkong.aliyuncs.com/file/3161_360pic_987654.zip";

        System.out.println(str.replaceAll("http.*com/",""));
    }
    /*http://ctf-pim.oss-cn-hongkong.aliyuncs.com/file/3161_360pic_987654.zip*/

    @Test
    public void test(){
        NavigableMap<Long,Long> m1 = new TreeMap<>(Comparator.reverseOrder());
        m1.put(11L,100L);
        m1.put(10L,100L);
        m1.put(9L,100L);
        m1.put(8L,100L);

        NavigableMap<Long,Long> m2 = new TreeMap<>(Comparator.reverseOrder());
        m2.put(11L,100L);
        m2.put(9L,100L);
        m2.put(8L,100L);


        NavigableMap<Long,Long> r1 = m1.tailMap(10L,true);
        NavigableMap<Long,Long> r2 = m2.tailMap(10L,true);

        System.out.println();
    }
}
